using System.Collections.Generic;
using roster.Domain;

namespace roster.UI
{
    public class PlayerSelectionController : IPlayerSelectionController
    {
        private readonly IPlayerSelectionView m_PlayerSelectionView;

        public PlayerSelectionController(IPlayerSelectionView playerSelectionView)
        {
            m_PlayerSelectionView = playerSelectionView;
        }

        public IEnumerable<IPlayer> GetPlayer(IEnumerable<IPlayer> players)
        {
            return m_PlayerSelectionView.GetPlayersToAdd(players);
        }
    }
}